package Mediator_Pattern.Software;

// -*-coding:utf-8 -*-
//人员：刘陆鑫
//班级：19软3
//学号；2019110218
public class Windows_Mediaor extends Windows{
    public ListPane listPane;
    public GraphicPane graphicPane;
    public TextPane textPane;
    @Override
    public void start(Pane E) {
        if(E == listPane){
            System.out.println("启动Listpane");
            listPane.show();
        }
        else if(E==graphicPane){
            System.out.println("启动graphicPane");
            graphicPane.show();
        }else if(E==textPane){
            System.out.println("启动textPane");
            textPane.show();
        }
        else{
            System.out.println("失败");
        }


    }
}
